package com.love.marriage.regionInfo.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.love.marriage.regionInfo.entity.RegionInfo;
import com.love.marriage.regionInfo.vo.RegionDetailInfoVo;
import com.love.marriage.regionInfo.vo.RegionInfoVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * description:  省市区信息表 mapper
 * author:       alex
 * createDate:   2024-10-13 21:41:13
 * version:      1.0.0
 */
@Mapper
public interface RegionInfoMapper extends BaseMapper<RegionInfo> {

    Page<RegionInfoVo> getPage(Page<RegionInfoVo> page, @Param("regionInfoVo") RegionInfoVo regionInfoVo);

    List<RegionInfoVo> getList(@Param("regionInfoVo") RegionInfoVo regionInfoVo);

    RegionInfoVo queryRegionInfo(@Param("id") Long id);

    RegionDetailInfoVo reginDetailInfo(@Param("provinceName") String provinceName,
                                       @Param("cityName") String cityName,
                                       @Param("districtName") String districtName);
}
